motion detection using python